import request from '@/utils/request'

export function getExamInfo(
  page: number,
  pageSize: number,
  studentId: string,
  stuName: string,
  examTimeWeek: string,
  examState: string
) {
  return request({
    url:
      '/admin/exam/getExamInfo?page=' +
      page +
      '&pageSize=' +
      pageSize +
      '&studentId=' +
      studentId +
      '&stuName=' +
      stuName +
      '&examTimeWeek=' +
      examTimeWeek +
      '&examState=' +
      examState,
    method: 'get'
  })
}

export function setExamScore(data: object) {
  return request({
    url: '/admin/exam/setExamScore',
    method: 'put',
    data: data
  })
}
